<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>过滤选择器</title>
	</head>
	<script type="text/javascript" src="jquery-3.1.4.js">
		
	</script>
	<body>
		<center>
			<table width="400px" height="200px" cellspacing="0px" cellpadding="0px" border="1px">
				<tr>
					<td>Header</td>
					<td>Data</td>
				</tr>
				<tr>
					<td>Header</td>
					<td>Data</td>
				</tr>
				<tr>
					<td>Header</td>
					<td>Data</td>
				</tr>
				<tr>
					<td>Header</td>
					<td>Data</td>
				</tr>
			</table>
		</center>
		
		<script type="text/javascript">
			// odd 偶数        even 奇数
			// 过滤选择器
			 
			$("tr:odd").css("background","#0000FF");
			$("tr:even").css("background","green");
		</script>
	</body>
</html>
